class Enterprise < ActiveRecord::Base
  validates_presence_of :name, :email, :phone
  
  validates_uniqueness_of :email
  
  validates_length_of :phone, :minimum => 8
  validates_numericality_of :phone, :only_integer => true
  
  has_many :vacancies
    
end
